import request from "../utils/request";

export default {
    async getCommodityByUserId(userId: number) {
        let params = {
            userId
        }
        return request.get('/shoppingCart/getByUserId' , params);
    },
    async add(commodityId: number , userId: number) {
        let params = { commodityId , userId };
        return request.get('/shoppingCart/add' , params);
    },
    async delete(id: number) {
        let params = { id };
        return request.get('/shoppingCart/delete' , params);
    }
}
